<?php

class Main_PageController extends Zend_Controller_Action
{

    public function init()
    {
    	//$this->view->setScriptPath($this->getViewScript()'page');

        //print_r($this->view->getScriptPaths());exit;
    	
    }

    public function indexAction()
    {
       
    }

    public function showAction()
    {
        $pageName = $this->getRequest()->getParam('name');
        if($pageName == 'show')
        	throw new Zend_View_Exception("Error displaying page.");
        else
       		$this->view->pageName = 'page/'.$pageName.'.phtml';
    }


}



